chmod +x spring

echo "success chmod +x"

pid=`ps -ef|grep spring|grep -v grep|awk '{print $2}'`
if [ -n "$pid" ]; then
    echo "process id is: $pid"
    kill $pid
    echo 'process killed'
else
    echo "spring-api process id is not found!"
fi


nohup ./spring >/dev/null 2>&1 &
echo "success run spring"